<template>
	<view class="dingdanxq">
		<headertop title="订单详情" str1="oridei" :back1="back1"></headertop>
		<!-- 使用中 -->
		<!-- <image :src="_static('/images/Group 11434@2x.png')" class="dingdanxqback" mode=""></image>
		<view class="centerbox">
			<view class="zttext">
				<view class="t1">
					使用中
				</view>
				<view class="t2">
					若已完成治疗，请及时归还
				</view>
			</view> -->
		<!-- 待付款 -->
		<image :src="_static('/images/Group 11616@2x.png')" class="dingdanxqback"
			v-if="statustext(contentobj.status_code)=='待付款'" mode=""></image>
		<!-- 已完成 -->
		<!-- <image :src="_static('/images/Group 11636@2x.png')" class="dingdanxqback" mode=""></image> -->
		<!-- 待发货 && 待配货-->
		<image :src="_static('/images/Group 11434@2x(1).png')" v-if="statustext(contentobj.status_code)=='待发货'"
			class="dingdanxqback" mode=""></image>
		<!--  待退押-->
		<!-- <image :src="_static('/images/Group 11636@2x(1).png')" class="dingdanxqback" mode=""></image> -->
		<!--  退款 || 退款成功 ||已取消-->
		<image :src="_static('/images/Group 11620@2x.png')"
			v-if="statustext(contentobj.status_code)=='退款成功'||statustext(contentobj.status_code)=='已取消'||typestr=='shouhou'"
			class="dingdanxqback" mode=""></image>
		<!-- 待收货 -->
		<image :src="_static('/images/Group 11434@2x(2).png')" class="dingdanxqback" mode=""
			v-if="statustext(contentobj.status_code)=='待收货'"></image>
		<view class="centerbox">
			<!-- 已完成 -->
			<!-- <view class="zttext">
				<view class="t1">
					已完成
				</view>
				<view class="t2">
					若已完成治疗，请及时归还
				</view>
			</view> -->
			<!-- 待发货 -->
			<!-- 		<view class="zttext" v-if="statustext(contentobj.status_code)=='待发货'">
				<view class="t1">
					待发货
				</view>
				<view class="t2">
					订单处理中，请耐心等待
				</view>
			</view>
			<view class="zttext" v-if="statustext(contentobj.status_code)=='待收货'">
				<view class="t1">
					待收货
				</view>
				<view class="t2">
					商品已发出，正在送往您的收货地址
				</view>
			</view>
			<view class="zttext" v-if="statustext(contentobj.status_code)=='待付款'">
				<view class="t1">
					待付款
				</view>
				<view class="t2">
					为确保库存，请尽快付款完成订单
				</view>
			</view> -->
			<view class="zttext" v-if="typestr!='shouhou'">
				<view class="t1">
					{{contentobj['status_text']}}
				</view>
				<view class="t2">
					{{contentobj['status_desc']}}
				</view>
			</view>

			<!-- 待配货 -->
			<!-- <view class="zttext">
				<view class="t1">
					待配货
				</view>
				<view class="t2">
					订单处理中，请耐心等待
				</view>
			</view> -->
			<!-- 待退押 -->
			<!-- <view class="zttext">
				<view class="t1">
					待退押
				</view>
				<view class="t2">
					押金审核中，请耐心等待~
				</view>
			</view> -->
			<!--  退款 -->
			<!-- <view class="zttext">
				<view class="t1">
					退款
				</view>
				<view class="t2">
					售后服务， 守护您的每一笔权益
				</view>
			</view> -->
			<!-- 退款成功 -->
			<view class="zttext" v-if="(typestr=='shouhou'&&statustext1(contentobj.aftersale_status)=='已完成')">
				<view class="t1">
					退款成功
				</view>
				<view class="t2">
					售后处理完成，感谢您的配合！
				</view>
			</view>


			<view class="zttext" v-if="statustext1(contentobj.aftersale_status)=='申请中'&&typestr=='shouhou'">
				<view class="t1">
					申请中
				</view>
				<view class="t2">
					已申请售后，请等待卖家处理
				</view>
			</view>
			<view class="zttext" v-if="statustext1(contentobj.aftersale_status)=='同意退货'&&typestr=='shouhou'">
				<view class="t1">
					同意退货
				</view>
				<view class="t2">
					商家已同意退货，请尽快退货给商家
				</view>
				<view class="t2">
					收货人姓名：{{contentobj.shop_return_info.user_name}}
				</view>
				<view class="t2">
					收货人电话： {{contentobj.shop_return_info.mobile}}
				</view>
				<view class="t2">
					退货地址： {{contentobj.shop_return_info.address}}
				</view>
			</view>
			<view class="zttext" v-if="statustext1(contentobj.aftersale_status)=='已拒绝'&&typestr=='shouhou'">
				<view class="t1">
					已拒绝
				</view>
				<view class="t2">
					卖家已拒绝售后，请及时处理
				</view>
			</view>

			<view class="tuikuanbox"
				v-if="(statustext1(contentobj.aftersale_status)=='已完成'&&typestr=='shouhou')||statustext(contentobj.status_code)=='退款成功'">
				<view class="tuikuanbox_center">
					<view class="topline">
						<span>退款成功</span>
						<span>￥{{contentobj.refund_fee||contentobj.order_amount}}</span>
					</view>
					<view class="shijian">
						{{contentobj.updatetime}}
					</view>
					<view class="tuihwx">
						<span style="margin-left: 24rpx;">退回微信</span>
						<span style="margin-right: 16rpx;">￥{{contentobj.refund_fee||contentobj.order_amount}}</span>
					</view>
				</view>
			</view>

			<view class="spbox1" v-if="typestr=='shouhou'||statustext(contentobj.status_code)=='退款成功'">
				<view class="spbox" v-if="typestr=='shouhou'">
					<image :src="contentobj.goods_image" class="leftimg" mode=""></image>
					<view class="texts">
						<view class="t1">
							{{contentobj.goods_title}}
						</view>
						<view class="t2">
							{{contentobj.goods_subtitle}}
						</view>
						<view class="t3line">
							<view class="box1">

							</view>
							<view class="box1">
								x1
							</view>
						</view>
					</view>
				</view>
				<view class="spbox" v-else v-for="item in contentobj.items">
					<image :src="item.goods_image" class="leftimg" mode=""></image>
					<view class="texts">
						<view class="t1">
							{{item.goods_title}}
						</view>
						<view class="t2">
							{{item.goods_subtitle}}
						</view>
						<view class="t3line">
							<view class="box1">

							</view>
							<view class="box1">
								x{{item.goods_num}}
							</view>
						</view>
					</view>
				</view>


				<view class="centerline">
					<view class="text">
						退款类型：
					</view>
					<view class="text" style="width: 300rpx;text-align: right;">
						{{contentobj.type_text}}
					</view>
				</view>
				<view class="centerline">
					<view class="text">
						退款原因：
					</view>
					<view class="text">
						{{contentobj.reason||''}}
					</view>
				</view>
				<view class="centerline" v-if="statustext1(contentobj.aftersale_status)=='已拒绝'">
					<view class="text">
						拒绝原因：
					</view>
					<view class="text" style="width: 300rpx;text-align: right;" @click="gopage('拒绝原因')">
						查看
					</view>
				</view>

				<view class="centerline">
					<view class="text">
						退款金额：
					</view>
					<view class="text">
						￥{{contentobj.refund_fee||contentobj.order_amount}}
					</view>
				</view>
				<!-- 	<view class="centerline" >
					<view class="text">
						申请件数：
					</view>
					<view class="text">
						{{contentobj.goods_num}}件
					</view>
				</view> -->
				<view class="centerline">
					<view class="text">
						申请时间：
					</view>
					<view class="text">
						{{contentobj.createtime}}
					</view>
				</view>
				<view class="centerline">
					<view class="text">
						订单编号：
					</view>
					<view class="text">
						{{contentobj.aftersale_sn||contentobj.order_sn}} | <span
							@click="goResult(contentobj.aftersale_sn,contentobj.order_sn)"> 复制</span>
					</view>
				</view>

			</view>


			<view class="kuadibox" v-if="typestr!='shouhou'&&statustext(contentobj.status_code)!='退款成功'">
				<!-- 	<view class="btnkuaidi">
					快递
				</view> -->
				<view class="line1">
					<image :src="_static('/images/Frame@2x(48).png')" mode=""></image>
					<span style="margin-left: 16rpx;">{{contentobj.address?.consignee}}</span>
					<span style="margin-left: 20rpx;">{{contentobj.address?.mobile}}</span>
				</view>
				<view class="line2">
					{{contentobj.address?.province_name}}{{contentobj.address?.city_name}}{{contentobj.address?.district_name}}{{contentobj.address?.address}}
				</view>
			</view>
			<!-- 	<view class="spbox">
				<image  :src="_static('/images/image@2x.png')" class="leftimg" mode=""></image>

				<view class="texts">
					<view style="width: 100%;display: flex;justify-content: space-between;align-items: center;">
						<view class="t1">
							这是一个商品名称
						</view>
						<view class="box1" style="font-size: 24rpx;color: #7F7F7F;">
							x1
						</view>
					</view>

					<view class="t2">
						这是一段商品描述，这是一段商这是一段商品描述，这是一段商.
					</view>
					<view class="t3line">
						<view class="box1" style="font-size: 32rpx;color: #F53F3F;">
							￥199.00
						</view>
						<view class="box1" style="margin-left: 46rpx;">
							押金：￥99.00
						</view>
					</view>
				</view>
			</view> -->
			<view class="spbox1" v-for="item in contentobj['items']" :key="item.id"
				v-if="statustext(contentobj.status_code)!='退款成功'">
				<view class="center" style="padding: 28rpx 0;">
					<view class="line" style="margin-top: 0rpx;">
						<image :src="item['goods_image']" class="leftimg" mode=""></image>
						<view class="texts">
							<view style="width: 100%;display: flex;justify-content: space-between;align-items: center;">
								<view class="t1">
									{{item.goods_title}}
								</view>
							</view>
							<view class="t2" v-if="item.goods_sku_text">
								<span v-if="skufun(item.goods_sku_text).length>1"><span
										style="font-size: 24rpx;color: #7F7F7F;">{{skufun(item.goods_sku_text)[0]}} |
										{{skufun(item.goods_sku_text)[1]}}</span></span>
								<span v-else><span
										style="font-size: 24rpx;color: #7F7F7F;">{{skufun(item.goods_sku_text)[0]}}</span></span>
							</view>
							<view style="height: 32rpx;margin-top: 10rpx;" v-else>

							</view>
							<view class="t3" style="display: flex;align-items: center;justify-content: space-between;">
								x{{item.goods_num}}
								<view
									style="font-family: PingFang SC, PingFang SC;font-weight: bold;font-size: 32rpx;color: #F53F3F;">
									￥{{item.goods_price}}
								</view>
							</view>
						</view>
					</view>
					<view class="lin1" v-if="statustext(contentobj.status_code)=='待收货'">
						<view class="tuikbtn" @click="gopage(textsutest(item.aftersale_status),item)">
							{{textsutest(item.aftersale_status)}}
						</view>
					</view>
				</view>
			</view>

			<view class="lin1" v-if="statustext(contentobj.status_code)=='待发货'">
				<view class="tuikbtn" @click="sqtk">
					申请退款
				</view>
			</view>

			<!--  使用中-->
			<!-- 	<view class="wuliubox">
				<view class="centerbox1">
					<span>物流公司：</span>
					<input type="text" placeholder="请输入公司" />
				</view>
				<view class="centerbox1" style="border: none;">
					<span>物流单号：</span>
					<input type="text" placeholder="请输入单号" />
				</view>
			</view> -->
			<!-- <view class="jigemx" style="height:auto">
				<view class="center">
					<view class="t1">
						联系人信息
					</view>
					<view class="line1">
						<view class="tt">
							联系人：
						</view>
						<view class="tt">
							勒克莱尔
						</view>
					</view>
					<view class="line1">
						<view class="tt">
							联系方式：
						</view>
						<view class="tt">
							13688889999
						</view>
					</view>
					<view class="line1">
						<view class="tt">
							备注：
						</view>
						<view class="tt">
							无
						</view>
					</view>
				</view>
			</view> -->

			<view class="jigemx" v-if="typestr!='shouhou'&&statustext(contentobj.status_code)!='退款成功'">
				<view class="center">
					<view class="t1">
						价格明细
					</view>
					<view class="line1">
						<view class="tt">
							商品总价：
						</view>
						<view class="tt">
							￥{{contentobj.goods_amount}}
						</view>
					</view>
					<view class="line1">
						<view class="tt">
							运费：
						</view>
						<view class="tt">
							￥{{contentobj.dispatch_amount}}
						</view>
					</view>
					<view class="bottomline">
						<view class="tt1">
							实付款：
						</view>
						<view class="jiage1">
							￥{{contentobj.order_amount}}
						</view>
					</view>
				</view>
			</view>
			<view class="jigemx" style="height:auto"
				v-if="typestr!='shouhou'&&statustext(contentobj.status_code)!='退款成功'">
				<view class="center">
					<view class="t1">
						订单信息
					</view>
					<view class="line1">
						<view class="tt">
							订单编号：
						</view>
						<view class="tt">
							{{contentobj['order_sn']}} | <span @click="goResult(contentobj.order_sn)">复制</span>
						</view>
					</view>
					<view class="line1">
						<view class="tt">
							创建时间：
						</view>
						<view class="tt">
							{{contentobj.createtime}}
						</view>
					</view>
					<view class="line1"
						v-if="statustext(contentobj.status_code)!='待付款'&&statustext(contentobj.status_code)!='已取消'">
						<view class="tt">
							付款时间：
						</view>
						<view class="tt">
							{{contentobj.paid_time}}
						</view>
					</view>
					<view class="line1"
						v-if="statustext(contentobj.status_code)!='待付款'&&statustext(contentobj.status_code)!='已取消'">
						<view class="tt">
							支付方式：
						</view>
						<view class="tt">
							微信支付
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="" style="height: 200rpx;">

		</view>
		<!--  退款-->
		<!-- 	<view class="fixedbox">
			<view class="btn">
				退款详情
			</view>
		</view> -->
		<!-- 待配货 -->
		<!-- 	<view class="fixedbox">
			<view class="btn">
				查看物流
			</view>
		</view> -->
		<!--  使用中-->
		<!-- <view class="fixedbox">
			<view class="btn">
				立即归还
			</view>
		</view> -->
		<view class="fixed" v-if="statustext1(contentobj.aftersale_status)=='申请中'&&typestr=='shouhou'">
			<view class="linebtns">
				<view class="sqsh" @click="gopage('取消申请')">
					取消申请
				</view>
			</view>
		</view>
		<view class="fixed" v-if="statustext1(contentobj.aftersale_status)=='已拒绝'&&typestr=='shouhou'">
			<view class="linebtns">
				<view class="sqsh" @click="gopage('重新申请')">
					重新申请
				</view>
			</view>
		</view>
		<!-- 待付款 -->
		<view class="fixedbox" v-if="statustext(contentobj.status_code)=='待付款'">
			<view class="btn" @click="gopage('立即支付')">
				立即支付
			</view>
		</view>
		<!-- 待收货 -->
		<view class="fixedbox" v-if="statustext(contentobj.status_code)=='待收货'">
			<view class="btnss">
				<!-- 	<view class="btn2" @click="gopage('申请售后')">
					申请售后
				</view> -->
				<view class="btn2" @click="gopage('查看物流')">
					查看物流
				</view>
				<view class="btn1" @click="qrsh">
					确认收货
				</view>
			</view>
		</view>
		<up-popup :show="show" mode="center">
			<view class="centerpopu" v-if="false">
				<image :src="_static('/images/removeicon.png')" class="closeicon" mode=""></image>
				<view class="wtext">
					确认物品已经寄出？
				</view>
				<view class="btn">
					确认
				</view>
			</view>
			<view class="uqrbox">
				<image :src="_static('/images/removeicon.png')" class="removeicon" mode=""></image>
				<image :src="_static('/images/Group 11640@2x.png')" class="uqrbox1" mode="widthFix">
				</image>
				<view class="centerboxw">
					<view class="title">
						核销二维码
					</view>
					<image :src="_static('/images/image@2x.png')" class="arinmg" mode=""></image>
					<view class="btn">
						核销码：NKSH
					</view>
				</view>
			</view>
		</up-popup>
	</view>
</template>

<script setup>
	import {
		_static
	} from '@/ulm/utils/url.js'
	import headertop from '@/components/header.vue'
	import {
		ref,
		reactive,
		onMounted
	} from 'vue'
	import ulm, {
		$api
	} from '@/ulm';
	import {
		onPageScroll,
		onLoad,
		onShow,
		onReachBottom
	} from "@dcloudio/uni-app";
	const show = ref(false)
	const contentobj = ref({})
	const back1 = ref('')
	const typestr = ref('')
	onPageScroll((e) => {
		if (e.scrollTop > 100) {
			back1.value = '#81D6FF'
		} else {
			back1.value = ''
		}
	})
	onLoad((opt) => {
		typestr.value = opt.typestr
		init(opt.id, opt.typestr)
	})

	function textsutest(num) {
		if (num == 0) {
			return '申请售后'
		} else if (num == 2) {
			return '售后完成'
		} else {
			return '售后详情'
		}
	}

	function skufun(str) {
		if (!str) {
			return []
		}
		return str.split(',')
	}

	async function init(id, str) {
		if (str == 'shouhou') {
			const res1 = await $api.aftersaledetail({
				id
			})
			if (res1.code == 1) {
				contentobj.value = res1.data
			}
			return
		}
		const res = await $api.orderdetail({
			id
		})
		if (res.code == 1) {
			contentobj.value = res.data
		}
	}

	function statustext1(str) {
		if (str == -2) {
			return '已取消'
		} else if (str == -1) {
			return '已拒绝'
		} else if (str == 0) {
			return '申请中'
		} else if (str == 1) {
			return '处理中'
		} else if (str == 2) {
			return '已完成'
		} else if (str == 5) {
			return '同意退货'
		}
	}

	function qrsh() {
		uni.showModal({
			title: '提示', // 标题（可选）
			content: '是否确认收货？', // 内容（可选）
			confirmText: '确定', // 确认按钮文字（可选，默认“确定”）
			cancelText: '取消', // 取消按钮文字（可选，默认“取消”）
			success: (res) => {
				if (res.confirm) {
					sh()
					// 执行确定后的逻辑
				} else if (res.cancel) {
					// 执行取消后的逻辑
				}
			},
			fail: (err) => {
				console.error('弹窗调用失败', err);
			}
		});
	}

	function sqtk() {
		uni.showModal({
			title: '提示', // 标题（可选）
			content: '是否申请退款？', // 内容（可选）
			confirmText: '确定', // 确认按钮文字（可选，默认“确定”）
			cancelText: '取消', // 取消按钮文字（可选，默认“取消”）
			success: (res) => {
				if (res.confirm) {
					sstt()
					// 执行确定后的逻辑
				} else if (res.cancel) {
					// 执行取消后的逻辑
				}
			},
			fail: (err) => {
				console.error('弹窗调用失败', err);
			}
		});
	}
	async function sh() {
		const res = await $api.confirm({
			id: contentobj.value.id
		})
		if (res.code == 1) {
			uni.navigateBack()
			setTimeout(() => {
				uni.showToast({
					title: '确认收货成功'
				})
			}, 500)
		} else {
			uni.showToast({
				title: res.msg,
				icon: 'none'
			})
		}
	}
	async function sstt() {
		const res = await $api.applyRefund({
			id: contentobj.value.id
		})
		if (res.code == 1) {
			uni.navigateBack()
			setTimeout(() => {
				uni.showToast({
					title: '申请退款成功'
				})
			}, 500)
		} else {
			uni.showToast({
				title: res.msg,
				icon: 'none'
			})
		}
	}

	function goResult(str, str1) {

		uni.setClipboardData({
			data: str || str1, // 需要复制的内容
			success: () => {
				// 成功提示框显示 1 秒钟
				uni.showToast({
					title: '复制成功',
					icon: 'success',
					duration: 1000
				});
			},
			fail: () => {
				// 失败提示框显示 1 秒钟
				uni.showToast({
					title: '复制失败，请重试',
					icon: 'none',
					duration: 1000
				});
			}
		});
	}

	function statustext(str) {
		if (str == 'unpaid') {
			return '待付款'
		} else if (str == 'nosend') {
			return '待发货'
		} else if (str == 'noget') {
			return '待收货'
		} else if (str == 'nohexiao') {
			return '待核销'
		} else if (str == 'wancheng') {
			return '已完成'
		} else {
			if (str == 'refund_agree') {
				return '退款成功'
			}
			return '已取消'
		}
	}
	async function gopage(str, iteem) {

		if (str == '立即支付') {
			var item = contentobj.value
			const res1 = await $api.payPrepay({
				order_sn: item.order_sn,
				payment: 'wechat'
			})
			if (res1.code == 1) {
				var payobj = res1.data.pay_data
				uni.requestPayment({
					timeStamp: String(payobj.timeStamp),
					nonceStr: payobj.nonceStr,
					package: payobj.package,
					signType: payobj.signType,
					paySign: payobj.paySign,
					success(res) {
						setTimeout(() => {
							uni.showToast({
								title: '支付成功',
								icon: 'none'
							})
						}, 500)
						uni.navigateBack()
					},
					fail(e) {
						setTimeout(() => {
							uni.showToast({
								title: '支付失败',
								icon: 'none'
							})
						}, 500)
					}
				})
			}
		} else if (str == '查看物流') {
			uni.navigateTo({
				url: '/sub_my/my/wuliuxinxi?id=' + contentobj.value.id
			})
		} else if (str == '申请售后') {
			uni.redirectTo({
				url: '/sub_shoppingmal/index/sqth?idd=' + iteem['id'] + '&id=' + contentobj.value.id
			})
		} else if (str == '售后详情' || str == '售后完成') {
			uni.navigateTo({
				url: '/sub_shoppingmal/index/orderdetail?typestr=shouhou&id=' + iteem['ext']['aftersale_id']
			})
		} else if (str == '取消申请') {
			uni.showModal({
				title: '提示', // 标题（可选）
				content: '是否取消申请？', // 内容（可选）
				confirmText: '确定', // 确认按钮文字（可选，默认“确定”）
				cancelText: '取消', // 取消按钮文字（可选，默认“取消”）
				success: (res) => {
					if (res.confirm) {
						sq()
						// 执行确定后的逻辑
					} else if (res.cancel) {
						// 执行取消后的逻辑
					}
				},
				fail: (err) => {}
			});
		} else if (str == '重新申请') {
			uni.redirectTo({
				url: '/sub_shoppingmal/index/sqth?idd=' + contentobj
					.value.order_item_id + '&id=' + contentobj.value['order_id']
			})
		} else if (str == '拒绝原因') {
			uni.navigateTo({
				url: '/sub_my/my/log?id=' + contentobj.value.id
			})
		}
	}
	async function sq() {
		const res = await $api.cancelaftersale({
			order_id: contentobj.value.order_id,
			order_item_id: contentobj.value.order_item_id,
		})
		if (res.code == 1) {
			setTimeout(() => {
				uni.showToast({
					title: '取消成功',
					icon: 'none'
				})
			}, 500)
			uni.navigateBack()
		} else {
			uni.showToast({
				title: res.msg,
				icon: 'none'
			})
		}
	}
</script>

<style lang="scss">
	page {
		background: #F7F8FA;
	}

	::v-deep .u-popup__content {
		background-color: rgba(255, 0, 0, 0) !important;
	}

	.uqrbox {
		width: 686rpx;
		height: 582rpx;
		position: relative;
		overflow: hidden;

		.removeicon {
			width: 42rpx;
			height: 42rpx;
			position: absolute;
			right: 66rpx;
			top: 38rpx;
		}

		.uqrbox1 {
			width: 686rpx;
			height: 582rpx;
			position: absolute;
			z-index: -1;
		}

		.centerboxw {
			width: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;

			.title {
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 36rpx;
				color: #1D2129;
				margin-top: 58rpx;
			}

			.arinmg {
				width: 342rpx;
				height: 342rpx;
				margin-top: 24rpx;
			}

			.btn {
				width: 264rpx;
				height: 66rpx;
				background: #EEF9FF;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				text-align: center;
				line-height: 66rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #2AB4F5;
				margin-top: 20rpx;
			}
		}
	}

	.centerpopu {
		width: 602rpx;
		height: 324rpx;
		background: linear-gradient(180deg, #CAEEFF 0%, #FFFFFF 23%);
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		position: relative;
		overflow: hidden;

		.closeicon {
			width: 35rpx;
			height: 35rpx;
			position: absolute;
			right: 34rpx;
			top: 30rpx;
		}

		.wtext {
			width: 100%;
			text-align: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #1D2129;
			margin-top: 98rpx;
		}

		.btn {
			width: 292rpx;
			height: 72rpx;
			background: #2AB4F5;
			border-radius: 12rpx 12rpx 12rpx 12rpx;
			text-align: center;
			line-height: 72rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #FFFFFF;
			margin: auto;
			margin-top: 70rpx;
		}
	}

	.fixed {
		width: 100%;
		height: 186rpx;
		background: #FFFFFF;
		box-shadow: 0rpx -4rpx 8rpx 0rpx rgba(0, 0, 0, 0.03);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		position: fixed;
		bottom: 0%;

		.linebtns {
			width: 100%;
			margin-top: 24rpx;
			display: flex;
			justify-content: flex-end;
			align-items: center;

			.sqsh {
				width: 198rpx;
				height: 82rpx;
				border-radius: 200rpx 200rpx 200rpx 200rpx;
				border: 2rpx solid #86909C;
				text-align: center;
				line-height: 82rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 30rpx;
				color: #86909C;
				margin-right: 24rpx;
			}

			.qrsh {
				width: 198rpx;
				height: 82rpx;
				background: #FFEFDE;
				border-radius: 200rpx 200rpx 200rpx 200rpx;
				text-align: center;
				line-height: 82rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 30rpx;
				color: #D1986F;
				margin-right: 24rpx;
			}
		}

		.btn1 {
			width: 686rpx;
			height: 82rpx;
			background: linear-gradient(to top, #CD936A 0%, #F5C89D 100%);
			border-radius: 200rpx 200rpx 200rpx 200rpx;
			text-align: center;
			line-height: 82rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
			margin: auto;
			margin-top: 24rpx;
			margin-bottom: 58rpx;
		}

		.btn {
			width: 252rpx;
			height: 82rpx;
			border-radius: 200rpx 200rpx 200rpx 200rpx;
			border: 2rpx solid #86909C;
			text-align: center;
			line-height: 82rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 30rpx;
			color: #86909C;
			margin-top: 24rpx;
			margin-left: 466rpx;
		}
	}

	.fixedbox {
		width: 100%;
		height: 194rpx;
		background: #FFFFFF;
		box-shadow: 0rpx -6rpx 14rpx 0rpx rgba(0, 0, 0, 0.03);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		overflow: hidden;
		position: fixed;
		bottom: 0%;


		.btnss {
			display: flex;
			justify-content: flex-end;
			align-items: center;
			margin-top: 32rpx;

			.btn2 {
				width: 210rpx;
				height: 82rpx;
				background: #F2F3F5;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				text-align: center;
				line-height: 82rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 32rpx;
				color: #4E5969;
				margin-left: 28rpx;
			}

			.btn1 {
				width: 210rpx;
				height: 82rpx;
				background: #2AB4F5;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				text-align: center;
				line-height: 82rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				margin-left: 28rpx;
				color: #FFFFFF;
				margin-right: 30rpx;
			}
		}

		.btn {
			width: 686rpx;
			height: 82rpx;
			background: #2AB4F5;
			border-radius: 12rpx 12rpx 12rpx 12rpx;
			text-align: center;
			line-height: 82rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #FFFFFF;
			margin: auto;
			margin-top: 32rpx;
		}
	}

	.dingdanxq {
		width: 100%;
		overflow: hidden;

		.dingdanxqback {
			position: absolute;
			z-index: -1;
			height: 486rpx;
			width: 100%;
		}

		.centerbox {
			width: 686rpx;
			margin: auto;
			margin-top: 232rpx;

			.tuikuanbox {
				width: 100%;
				background: #FFFFFF;
				height: 244rpx;
				box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(0, 0, 0, 0.25);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin-top: 42rpx;
				overflow: hidden;

				&_center {
					width: 630rpx;
					margin: auto;

					.topline {
						width: 100%;
						display: flex;
						justify-content: space-between;
						align-items: center;
						font-family: PingFang SC, PingFang SC;
						font-weight: bold;
						font-size: 32rpx;
						color: #333333;
						margin-top: 28rpx;
					}

					.tuihwx {
						width: 630rpx;
						height: 82rpx;
						background: #F7F8FA;
						border-radius: 12rpx 12rpx 12rpx 12rpx;
						display: flex;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #777777;
						align-items: center;
						justify-content: space-between;
						margin-top: 12rpx;
					}

					.shijian {
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #777777;
						margin-top: 16rpx;
					}

				}
			}

			.wuliubox {
				width: 686rpx;
				height: 192rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 4rpx 14rpx 0rpx rgba(0, 0, 0, 0.09);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin-top: 32rpx;

				.centerbox1 {
					width: 630rpx;
					height: 96rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					border-bottom: 2rpx solid #F7F8FA;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #1D2129;
					margin: auto;

					input {
						text-align: right;
					}
				}
			}


			.jigemx {
				width: 686rpx;
				height: 326rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(0, 0, 0, 0.25);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin: 28rpx auto;
				overflow: hidden;

				.center {
					width: 630rpx;
					margin: auto;
					margin-top: 32rpx;

					.t1 {
						font-family: PingFang SC, PingFang SC;
						font-weight: bold;
						font-size: 28rpx;
						color: #1D2129;
						margin-bottom: 20rpx;
					}

					.line1 {
						width: 100%;
						display: flex;
						justify-content: space-between;
						align-items: center;

						.tt {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 28rpx;
							color: #4E5969;
							margin-bottom: 24rpx;
						}


					}

					.bottomline {
						width: 100%;
						height: 102rpx;
						display: flex;
						align-items: center;
						border-top: 2rpx solid #F2F3F5;
						justify-content: space-between;

						.tt1 {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 28rpx;
							color: #4E5969;
						}

						.jiage1 {
							font-family: PingFang SC, PingFang SC;
							font-weight: bold;
							font-size: 32rpx;
							color: #F53F3F;
						}
					}
				}
			}

			.lin1 {
				width: 100%;
				display: flex;
				justify-content: flex-end;
				margin-top: 32rpx;
				margin-bottom: 28rpx;

				.tuikbtn {
					width: 178rpx;
					height: 64rpx;
					background: #FFFFFF;
					border-radius: 16rpx 16rpx 16rpx 16rpx;
					border: 2rpx solid #C9CDD4;
					text-align: center;
					line-height: 64rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #4E5969;
				}
			}

			.spbox1 {
				width: 686rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 4rpx 14rpx 0rpx rgba(0, 0, 0, 0.09);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				overflow: hidden;
				margin-top: 28rpx;

				.centerline {
					width: 630rpx;
					margin: auto;
					margin-bottom: 24rpx !important;
					display: flex;
					justify-content: space-between;
					align-items: center;

					.title {
						font-family: PingFang SC, PingFang SC;
						font-weight: bold;
						font-size: 28rpx;
						color: #1D2129;
					}

					.text {
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #4E5969;
					}
				}

				.center {
					width: 630rpx;
					margin: auto;

					.lin1 {
						width: 100%;
						display: flex;
						justify-content: flex-end;
						margin-top: 32rpx;
						margin-bottom: 28rpx;

						.tuikbtn {
							width: 178rpx;
							height: 64rpx;
							background: #FFFFFF;
							border-radius: 16rpx 16rpx 16rpx 16rpx;
							border: 2rpx solid #C9CDD4;
							text-align: center;
							line-height: 64rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 28rpx;
							color: #4E5969;
						}
					}

					.line {
						width: 100%;
						margin-top: 28rpx;
						display: flex;
						align-items: center;
						justify-content: space-between;

						.leftimg {
							width: 156rpx;
							height: 156rpx;
							border-radius: 16rpx 16rpx 16rpx 16rpx;
						}

						.texts {
							width: 462rpx;
							margin-left: 12rpx;

							.t1 {
								width: 356rpx;
								font-family: PingFang SC, PingFang SC;
								font-weight: 500;
								font-size: 28rpx;
								color: #1D2129;
								display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								/* 限制文本显示为2行 */
								overflow: hidden;
							}

							.t2 {
								width: 356rpx;
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 24rpx;
								color: #7F7F7F;
								display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								/* 限制文本显示为2行 */
								overflow: hidden;
								margin-top: 10rpx;
							}

							.t3 {
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 24rpx;
								color: #7F7F7F;
								width: 100%;
								text-align: right;
								margin-top: 22rpx;
							}
						}
					}
				}
			}

			.spbox {
				width: 686rpx;
				height: 212rpx;
				// background: #FFFFFF;
				// box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(0, 0, 0, 0.25);
				// margin-top: 28rpx;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin: auto;
				display: flex;
				position: relative;
				align-items: center;

				.xz {
					width: 32rpx;
					height: 32rpx;
					position: absolute;
					right: 30rpx;
					top: 30rpx;
				}

				.leftimg {
					width: 156rpx;
					height: 156rpx;
					border-radius: 16rpx 16rpx 16rpx 16rpx;
					margin-left: 28rpx;
				}

				.texts {
					width: 462rpx;
					margin-left: 12rpx;

					.t1 {
						width: 356rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 28rpx;
						color: #1D2129;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 1;
						/* 限制文本显示为2行 */
						overflow: hidden;
					}

					.t2 {
						width: 356rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #7F7F7F;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 1;
						/* 限制文本显示为2行 */
						overflow: hidden;
						margin-top: 10rpx;
					}

					.t3line {
						width: 100%;
						display: flex;
						align-items: center;
						margin-top: 22rpx;

						.box1 {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 28rpx;
							color: #4E5969;
						}
					}
				}
			}

			.kuadibox {
				width: 100%;
				overflow: hidden;
				background: #FFFFFF;
				box-shadow: 0rpx 4rpx 14rpx 0rpx rgba(0, 0, 0, 0.09);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin-top: 42rpx;
				position: relative;

				.btnkuaidi {
					width: 112rpx;
					height: 48rpx;
					background: #2AB4F5;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					text-align: center;
					line-height: 48rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 32rpx;
					color: #FFFFFF;
					position: absolute;
					right: 28rpx;
					top: 24rpx;
				}

				.line2 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #777777;
					margin-top: 24rpx;
					margin-left: 28rpx;
					width: 558rpx;
					margin-bottom: 30rpx;
				}

				.line1 {
					width: 500rpx;
					display: flex;
					align-items: center;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 32rpx;
					color: #333333;
					margin-left: 28rpx;
					margin-top: 28rpx;

					image {
						width: 32rpx;
						height: 32rpx;
					}
				}
			}

			.zttext {
				width: 100%;
				overflow: hidden;

				.t1 {
					font-family: PingFang SC, PingFang SC;
					font-weight: bold;
					font-size: 40rpx;
					color: #1D2129;
				}

				.t2 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #1D2129;
					margin-top: 14rpx;
				}
			}
		}
	}
</style>